var express=require("express");
var app=express();
var db=require("./models/db");
var router=require("./router");

app.set("view engine","ejs");

app.get("/",router.showindex);

app.get("/add",router.showadd)

app.get("/doadd",router.doadd)

app.get("/edit/:sid",router.edit)

app.get("/doedit/:sid",router.doedit);

app.get("/delete/:sid",router.delete);

app.listen(3000);